<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>优医登录</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
        }
        body {
            background-color: #f5f5f5;
            padding: 20px;
            color: #333;
        }
        .form-container {
            background-color: white;
            padding: 20px;
            border-radius: 12px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }
        .header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 40px;
        }
        .back-btn {
            font-size: 24px;
            color: #333;
            text-decoration: none;
        }
        .register-btn {
            color: #00b42a;
            text-decoration: none;
            font-size: 16px;
            font-weight: 500;
        }
        .login-title {
            font-size: 24px;
            font-weight: 600;
            margin-bottom: 30px;
            color: #333;
        }
        .login-tabs {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
        }
        .tab-password {
            font-size: 18px;
            font-weight: 500;
            color: #333;
            margin-right: 0;
        }
        .tab-sms {
            font-size: 16px;
            color: #666;
            text-decoration: none;
        }
        .input-group {
            margin-bottom: 20px;
        }
        .input-label {
            display: block;
            margin-bottom: 8px;
            font-size: 14px;
            color: #666;
        }
        .input-field {
            width: 100%;
            height: 50px;
            padding: 0 15px;
            border: none;
            background: transparent;
            border-radius: 8px;
            font-size: 16px;
            outline: none;
            box-shadow: none;
        }
        .input-field:focus {
            border-color: #00b42a;
        }
        .password-container {
            position: relative;
        }
        .toggle-password {
            position: absolute;
            right: 15px;
            top: 50%;
            transform: translateY(-50%);
            color: #999;
            cursor: pointer;
        }
        .agreement {
            display: flex;
            align-items: center;
            margin: 25px 0;
        }
        .agreement-checkbox {
            width: 16px;
            height: 16px;
            margin-right: 8px;
        }
        .agreement-text {
            font-size: 14px;
            color: #666;
        }
        .agreement-link {
            color: #00b42a;
            text-decoration: none;
        }
        .login-btn {
            width: 100%;
            height: 50px;
            background-color: #ddd;
            color: #fff;
            border: none;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 500;
            cursor: not-allowed;
            margin-bottom: 15px;
        }
        .login-btn.active {
            background-color: #00b42a;
            cursor: pointer;
        }
        .forgot-password {
            display: block;
            text-align: center;
            color: #666;
            text-decoration: none;
            font-size: 14px;
            margin-bottom: 40px;
        }
        .third-party-login {
            position: relative;
            text-align: center;
            margin: 40px 0 20px;
        }
        .third-party-text {
            display: inline-block;
            padding: 0 15px;
            background-color: #f5f5f5;
            font-size: 14px;
            color: #999;
        }
        .third-party-line {
            position: absolute;
            top: 50%;
            left: 0;
            width: 100%;
            height: 1px;
            background-color: #ddd;
            z-index: -1;
        }
        .third-party-icons {
            display: flex;
            justify-content: center;
            gap: 30px;
            margin-top: 20px;
        }
        .icon-item {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background-color: #f5f5f5;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #666;
            font-size: 24px;
        }
    </style>
</head>
<body>
    <div class="form-container">
    <div class="header">
        <a href="#" class="back-btn">&lt;</a>
        <a href="#" class="register-btn">注册</a>
    </div>

    <h1 class="login-title">密码登录</h1>
    <div class="login-tabs">
        <span class="tab-password">密码登录</span>
        <a href="#" class="tab-sms">手机验证码登录 &gt;</a>
    </div>

    <div class="input-group">
        <label class="input-label">请输入手机号码</label>
        <input type="tel" class="input-field" placeholder="请输入手机号码">
    </div>

    <div class="input-group password-container">
        <label class="input-label">请输入密码</label>
        <input type="password" class="input-field" id="password" placeholder="请输入密码">
        <span class="toggle-password">👁️</span>
    </div>

    <div class="agreement">
        <input type="checkbox" class="agreement-checkbox" id="agreement">
        <label for="agreement" class="agreement-text">我已同意 <a href="#" class="agreement-link">用户协议</a> 及 <a href="#" class="agreement-link">隐私协议</a></label>
    </div>

    <button class="login-btn" id="loginBtn">登录</button>
    <a href="#" class="forgot-password">忘记密码?</a>
    </div>

    <div class="third-party-login">
        <div class="third-party-line"></div>
        <span class="third-party-text">第三方登录</span>
    </div>

    <div class="third-party-icons">
        <div class="icon-item">🐧</div>
    </div>

    <script>
        // 密码显示/隐藏切换
        const togglePassword = document.querySelector('.toggle-password');
        const passwordInput = document.getElementById('password');

        togglePassword.addEventListener('click', () => {
            const type = passwordInput.getAttribute('type') === 'password' ? 'text' : 'password';
            passwordInput.setAttribute('type', type);
            togglePassword.textContent = type === 'password' ? '👁️' : '👁️‍🗨️';
        });

        // 同意协议 checkbox 状态变化
        const agreementCheckbox = document.getElementById('agreement');
        const loginBtn = document.getElementById('loginBtn');

        agreementCheckbox.addEventListener('change', () => {
            if (agreementCheckbox.checked) {
                loginBtn.classList.add('active');
                loginBtn.disabled = false;
            } else {
                loginBtn.classList.remove('active');
                loginBtn.disabled = true;
            }
        });
    </script>
</body>
</html>